﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ThemSuaXoaSX.ascx.cs" Inherits="WebBanDT.AdminControl.ThemSuaXoaSX" %>
    <div id="wapper">
     <div id="dangnhap">
             <div style=" height:50px;">
                  <h2 style=" padding-top:15px; padding-left:100px; padding-top:15px; height:30px; color:Blue;">Nhập thông tin Nhà sản xuất</h2>
            </div>
            <div style=" float:left; width:342px;">
            <div style=" height:50px; width:477px;">
               <div style=" margin-left:0px; margin-top:10px; width:130px; height:30px; float:left"><h3 style=" color:Maroon; height:30px;">Mã nhà SX:</h3></div>
               <div style=" margin-left:0px; margin-top:15px; width:200px; float:left"><asp:TextBox ID="txtMaNSX" runat="server" Width="200px" Height="30px"></asp:TextBox></div>
            </div>
            <div style=" height:50px; width:417px;">
                  <div style=" margin-left:0px; margin-top:10px; width:130px; height:30px; float:left"><h3 style=" color:Maroon; height:30px;">Tên nhà SX:</h3></div>
                  <div style=" margin-left:0px; margin-top:15px; width:200px; float:left"><asp:TextBox ID="txtTenNSX" runat="server" Width="200px" Height="30px"></asp:TextBox></div>
            </div>
            <div style=" height:80px; width:477px; margin-left:9px;">
                 <div style=" width:100px; height:35px; margin-left:120px; margin-top:20px; float:left;">
                     <asp:Button ID="btnThemNSX" runat="server"  Text="Thêm Nhà SX" Width="120px" 
                         Height="35px" onclick="btnThemNSX_Click"/>
                 </div>
            </div>
             <div><asp:Label ID="lableThongbao" runat="server"></asp:Label></div>
            </div>
     </div>
     <div id="dieukhien" style=" float:left;padding-top:11px;">
     <table style=" width:100%; height:100%; float:left;">
         <tr>
            <td align="center">
                 <asp:Repeater ID="Repeater1" OnItemCommand="Thucthi" runat="server">
     <HeaderTemplate> 
    <table border=1 style="border-collapse:collapse; margin-top:1px;">
    <th>MaNSX</th>
    <th>Tên NSX</th>
    </HeaderTemplate>
    <ItemTemplate>
    <tr>
    <td>
    <asp:Label ID="lblMaNSX" runat="server" Text='<%#Eval("MaNSX") %>'></asp:Label>
    <asp:TextBox ID="txtMaNSX" runat="server" Text='<%#Eval("MaNSX") %>' Visible="false" ReadOnly="true"></asp:TextBox>
    </td>
    <td>
    <asp:Label ID="lblTenNSX" runat="server" Text='<%#Eval("TenNSX") %>'></asp:Label>
     <asp:TextBox ID="txtTenNSX" runat="server" Text='<%#Eval("TenNSX") %>' Visible="false"></asp:TextBox>
    </td>
     <td>
     <asp:LinkButton ID="lbtn1" CommandName="Xoa" runat="server" Text="Xóa"></asp:LinkButton>
    </td>
     <td>
     <asp:LinkButton ID="LinkButton1" CommandName="Sua" runat="server" Text="Sửa"></asp:LinkButton>
     <asp:LinkButton ID="LinkButton2" CommandName="Luu" runat="server" Text="Lưu" Visible="false"></asp:LinkButton>
     <asp:LinkButton ID="LinkButton3" CommandName="Khongluu" runat="server" Text="Không lưu" Visible="false"></asp:LinkButton>
    </td>
    </tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
                </asp:Repeater>
            </td>
         </tr>
     </table>
     </div>
     </div> 
     <div id="list">
     </div>
    